package com.btpj.module_login.data.entity

import androidx.databinding.BaseObservable
import com.btpj.module_login.BR

class LoginLayoutEntity : BaseObservable() {

    var isLogin: Boolean = true
        set(value) {
            if (value != field) {
                field = value
                notifyPropertyChanged(BR._all)
            }
        }

    val tips: String
        get() {
            return if (isLogin) "密码登录" else "账号注册"
        }

    val btnText: String
        get() {
            return if (isLogin) "登录" else "注册"
        }

    val featureName: String
        get() {
            return if (isLogin) "注册" else "登录"
        }
}